<div ng-include src="'tpl/public/header.html'"></div> 
<div class="contents">
  <ol class="breadcrumb">
    
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    
    <div class="form-group">
      <label class="sr-only" >手机号</label>
      <input type="text" class="form-control" placeholder="手机号" ng-model="searchMap.uMobile">
    </div>
   <div class="form-group">
      <label class="sr-only" >团状态</label>

       <select class="form-control" ng-model="searchMap.fpGroupStatus" ng-options="m.value as m.text for m in dictMap.fpGroupStatusModel" placeholder="团状态"><option value="">--选择团状态--</option></select>
    </div>
    <div class="form-group">
      <input type="date" class="form-control" placeholder="成团开始日期,如2015-01-01" ng-model="searchMap.fpGroupSuccessTimeBeginStr" maxlength="10">
    </div> 
 
    <div class="form-group">
      <input type="date" class="form-control" placeholder="成团结束日期,如2015-01-01" ng-model="searchMap.fpGroupSuccessTimeEndStr" maxlength="10">
    </div>
   
    <button type="submit" class="btn btn-primary">查询</button>
   
   <button type="button" ng-click="export()" class="btn btn-primary">导出CSV</button>
  </form>
  <div>
    
  </div>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="80">团编号</th>
	      <th width="130">建团时间</th>
        <th width="130">成团时间</th>
        <th width="80">团名称</th>
        <th width="80">团大小</th>
        <th width="80">参团人数</th>
        <th width="80" class="green">认证通过</th>
        <th width="80" class="red">认证失败</th>
        <th width="80" class="blue">认证中</th>
        <!--<th width="80">认证用户数</th>-->
        <th width="80">团长姓名</th>
        <th width="110">团长手机号</th>
        <th width="80">团状态</th>
        <th width="100">是否领取红包</th>
        <th width="80">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="item in list">
        <td>{{item.fpGroupId}}</td>
	<td>{{item.fpGroupCreateTime| date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{item.fpGroupSuccessTime| date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{item.fpGroupName}}</td>
        <td>{{item.fpGroupTotalMember}}</td>
        <!--<td>{{item.fpGroupSuccessMember}}</td>-->

        <td>{{item.fpGroupAllMember}}</td>
        <td class="green">{{item.fpGroupSuccessMember}}</td>
        <td class="red">{{item.fpGroupFailMember}}</td>
        <td class="blue">{{item.fpGroupZhongMember}}</td>

        <td>{{item.fpFaName}}</td>
        <td>{{item.fpFaMobile}}</td>
        <td>{{item.fpGroupStatus |fpGroupStatusRenter}}</td>
        <td>{{item.hadGetGift|hadGetGiftRenter}}</td>
        <td><a href="#/hongbao/detail?fpGroupId={{item.fpGroupId}}">手动组团</a></td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>
